// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 69;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The mountains of the Rokaj are shot through with caves and tunnels. Many are mines and cave systems, close to the surface. Some of the caves are huge and deep.";
	text2 = "You are at the south end of an enormous cavern. The ceiling is held up by several enormous natural stone pillars. It is searing hot, and the air is so full of soot and sulfur as to be barely breathable. There are crevices everywhere, spitting fumes and putting out eerie orange light.";
	text3 = "It's a deadly, miserable place, but that does nothing to scare off the Ro. You can see the tracks of miners and explorers in the soot. They aren't fresh. Probably a few days old. Hunters and fortune-seekers pass through here. Perhaps some even return.";
	code =
		sf(100 + this_sec,1,1);
		sf(80,17,1);
		run_game_hardcode(1015);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "You find an abandoned campsite. Broken tools scattered about make you think miners were camping here. It's a pretty odd, out of the way place to set up a base.";
	text2 = "Then you see why they were here. You see a narrow, rocky path crossing the lava just ahead. It wasn't visible from the south. Too many rocks. It's a useful way for an experienced cave explorer to get around quickly.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "Some miners hid a cache down here. The small crates are covered with a thick layer of soot. This stuff has been here for a long time.";
	text2 = "Most of the boxes contain tools and rock samples. Nothing useful, except that one of the samples is a large, glittering crystal.";
	code =
		sf(100 + this_sec,3,1);
		change_crafting(1,0,0,0,0);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "You search through the nest and find a collection of bone and chewed tools going back centuries. A lot of prospectors have found their final resting place here. At least the view is pretty cool.";
	text2 = "In the nest, you can also pick out a few pouches of gold, gemstones, and the like.";
	code =
		sf(100 + this_sec,4,1);
		change_coins(68,TRUE);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "A group of robed figures emerges from the steam and soot. You reach for your weapon, only to realize they haven't noticed you.";
	text2 = "It's a small group of humans, wandering around and looking at things. Sometimes, one of them picks up a chunk of granite or crystal. They inspect it and throw it away.";
	text3 = "Eventually, one of them sees you. They stop and stare. They don't seem hostile.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Avoid them.";
	text1 = "You walk around the mysterious figures, giving them plenty of space. They watch as you go. Then they head off in the opposite direction.";
	action = END_TALK;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach them.";
	text1 = "When you get close, they lower their hoods. You can see that they are Ro, all from different provinces. They have backpacks and sacks, heavy with samples.";
	text2 = "One of them steps forward. _Excuse me, you're from Haven, aren't you?_ He nods at your shoulder insignia. _We are Erudico. Wandering students of nature and magic._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_What are you doing down here?_";
	text1 = "_Research. Looking for samples of new sorts of rock and crystal. Seeing how the caves are changing. Bringing knowledge back to the main tower._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_Where are you going now?_";
	text1 = "_We are almost done with this trip. We have as much as we can carry. We're just enjoying the safer, more comfortable part of the cave for a moment. Then we emerge through the Firepits._";

begintalknode;
	state = 12;
	nextstate = 11;
	condition = 1;
	question = "_What about the drake at the gate?_";
	text1 = "_What? You mean Frakiss? The Erudico have had an arrangement with that old softie going back centuries. Our toll is paid._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Any advice for traveling down here?_";
	text1 = "_Hmmm. Can be hard to find your way around. If you need to rest, look for Danva's Outpost. It's north and then west._";
	text2 = "_We Erudico have an old ruin down here, that way._ He points in what seems like a northwesterly sort of direction. _I'd be careful near there. It's really, really in need of a cleaning._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'll be on my way._";
	text1 = "_And us, too. We miss the cool, soothing air of the Low Dhaga._ They chuckle. _Enjoy the beauty of the underworld!_";
	text2 = "They meander off toward the Firepits, though they are constantly distracted by the wonders of nature.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
	break;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				